package com.fay.designPattern.oop.basic;

import java.awt.*;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/2/21 20:52
 * @Version 1.0
 */
public class PriavateImageStore implements ImageStore {
    @Override
    public String upload(Image image, String bucketName) {
        createBucketIfNotExisting(bucketName);
        // 上传图片到私有云，返回url
        return null;
    }

    @Override
    public Image download(String url) {
        // 从私有云下载图片
        return null;
    }

    private void createBucketIfNotExisting(String bucketName) {
        // 创建bucket，失败抛出异常
    }
}
